﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Agnes.TaskManager.Models;
using Csla;


namespace Agnes.TaskManager
{
    /// <summary>
    /// 任务标记类型名值表
    /// </summary>
    /// <typeparam name="K">TaskFlag</typeparam>
    /// <typeparam name="V">TaskFlag的显示字符串</typeparam>
    public class TaskFlagNVL : NameValueListBase<TaskFlag, string>
    {
        private void DataPortal_Fetch()
        {
            RaiseListChangedEvents = false;
            IsReadOnly = false;
            Add(new NameValuePair(TaskFlag.FlagBug, "Bug"));
            Add(new NameValuePair(TaskFlag.FlagCatalog, "分类"));
            Add(new NameValuePair(TaskFlag.FlagProject, "项目"));
            Add(new NameValuePair(TaskFlag.FlagModule, "模块"));
            Add(new NameValuePair(TaskFlag.FlagCoding, "编码"));
            Add(new NameValuePair(TaskFlag.FlagTest, "测试"));
            Add(new NameValuePair(TaskFlag.FlagBacklog, "待办事项"));
            Add(new NameValuePair(TaskFlag.FlagImprovement, "改进"));
        }
    }
}
